package com.aios.action.timer;

import java.util.List;
import org.apache.log4j.Logger;
import com.aios.entity.mapper.TimerSwitch;


public class TimerListAction extends AbstractTimerAction {
	
	private static final long serialVersionUID = 1L;
	private static Logger logger = Logger.getLogger(TimerListAction.class);
	private List<TimerSwitch> timerSwitch;

	public String execute() {
		
		try {
			timerSwitch= timerService.findTimerByUserId(getSessionUserVariable().getId());
			return SUCCESS;
		} catch(Exception e){
			logger.error(e);
		}
		
		return null;
	}

	public List<TimerSwitch> getTimerSwitch() {
		return timerSwitch;
	}

	public void setTimerSwitch(List<TimerSwitch> timerSwitch) {
		this.timerSwitch = timerSwitch;
	}
}
